//
//  CCI.h
//  p4
//
//  Created by CaoJun on 15/5/13.
//  Copyright (c) 2015年 com.baidao. All rights reserved.
//

#ifndef __p4__CCI__
#define __p4__CCI__

#include "IndexData.h"

#include <utility>
#include <string>

namespace ytx {
    class CCI : public IndexData{
    public:
        CCI(IndexConfig indexConfig);
        virtual ~CCI();
        
        virtual void calculate(Quotation * data);
        
        virtual void updateLastest(Quotation * data);
        
        virtual std::string getCrosshairYData(int index);
        virtual int getDataLength() const;
        virtual bool hasData() const;
        virtual bool hasData(int index) const;
        virtual std::vector<std::pair<std::string, std::string> > getTopSideText(int index) const;
    };
}

#endif /* defined(__p4__CCI__) */
